package club.zhcs.cms.bean.cms;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import com.kerbores.utils.db.data.Entity;

/**
 * 
 * @author Kerbores(kerbores@gmail.com)
 *
 * @project cms
 *
 * @file Produce.java
 *
 * @description 产品
 *
 * @copyright 内部代码,禁止转发
 *
 * @time 2016年5月12日 下午12:44:08
 *
 */
@Table("t_product")
@Comment("产品")
public class Product extends Entity {

	@Column("p_name")
	@Comment("产品名称")
	@ColDefine(width = 200)
	private String name;

	@Column("p_desc")
	@Comment("产品描述")
	@ColDefine(width = 21845, type = ColType.TEXT)
	private String description;

	@Column("p_english_name")
	@Comment("产品英文名称")
	@ColDefine(width = 200)
	private String englishName;

	@Column("p_english_desc")
	@Comment("产品英文描述")
	@ColDefine(width = 21845, type = ColType.TEXT)
	private String englishDescription;

	/**
	 * @return the englishName
	 */
	public String getEnglishName() {
		return englishName;
	}

	/**
	 * @param englishName
	 *            the englishName to set
	 */
	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	/**
	 * @return the englishDescription
	 */
	public String getEnglishDescription() {
		return englishDescription;
	}

	/**
	 * @param englishDescription
	 *            the englishDescription to set
	 */
	public void setEnglishDescription(String englishDescription) {
		this.englishDescription = englishDescription;
	}

	@Column("p_category_id")
	@Comment("分类id")
	private int categoryId;

	@Column("p_brand_id")
	@Comment("品牌id")
	private int brandId;

	@Column("p_price")
	@Comment("产品价格")
	private double price;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the categoryId
	 */
	public int getCategoryId() {
		return categoryId;
	}

	/**
	 * @param categoryId
	 *            the categoryId to set
	 */
	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	/**
	 * @return the brandId
	 */
	public int getBrandId() {
		return brandId;
	}

	/**
	 * @param brandId
	 *            the brandId to set
	 */
	public void setBrandId(int brandId) {
		this.brandId = brandId;
	}

	/**
	 * @return the price
	 */
	public double getPrice() {
		return price;
	}

	/**
	 * @param price
	 *            the price to set
	 */
	public void setPrice(double price) {
		this.price = price;
	}

}
